{% extends "base.html" %}
{% load i18n %}

{% block title %} Choose a class - Mr. Edu {%endblock%}

{% block section%}

	<h1>{% trans "[TITLE] Create a new folder" %}</h1>
	{% if courses %}
	<form id="chooseClass" action="/mrEdu/{{userRole}}/class/choose" method="post" accept-charset="UTF-8">
		<fieldset>
			<legend>{% trans "[LEGEND] Choose a class" %}</legend>
			<p class="borderTop">
				{% if feedback%}
				<div id="feedback">
					{% for item in feedback %}
					{{item|safe}}
					{% endfor %}
				</div>
				{% endif %}
				<label>{% trans "[LABEL] Class" %}:
					<select id="fileCollection" name="class">
						<option value="none">{% trans "Choose a class" %}</option>
						{% for item in courses %}
						<option value="{{item.id}}">{{item.name}} {{item.year}}</option>
						{% endfor %}
					</select>
				</label>
			</p>
			<input class="button submit" type="submit" value="{% trans "[BUTTON] Next" %}">
			{% csrf_token %}
		</fieldset>
	</form>
	{% else %}
	<p class="message">{% trans "[MESSAGE] You have not any class associated." %}</p>
	{% endif %}
{%endblock%}
